package com.shareinfo.permission.service;

import java.util.List;
import net.sf.json.JSONArray;
import com.shareinfo.framework.pagination.Page;
import com.shareinfo.permission.model.UserDept;
import com.shareinfo.permission.query.UserDeptQuery;

public interface IUserDeptService
{
	public List<UserDept> selectList(UserDeptQuery query, Page page);

	public Integer selectCount(UserDeptQuery query);

	public Integer selectChildCount(List<String> list);

	public JSONArray selectTreeList(UserDeptQuery query);

	public UserDept selectOne(UserDeptQuery query);

	public void insert(UserDept userDept);

	public void update(UserDept userDept);

	public void delete(List<UserDept> list);
}